package com.zlp.entity;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

public class SysRoleResource implements Serializable {
    /**
     * PK
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "PK")
    private Integer id;

    /**
     * 关联 resource表 主键
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "关联 resource表 主键")
    private Integer resourceId;

    /**
     * 关联role 表主键
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "关联role 表主键")
    private Integer roleId;

    /**
     * 1-已删除；0-未删除
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "1-已删除；0-未删除")
    private String isDelete;

    /**
     * 权限项
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "权限项")
    private String resourceAuho;

    private String createBy;

    private Date createTime;

    private String updateBy;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getResourceId() {
        return resourceId;
    }

    public void setResourceId(Integer resourceId) {
        this.resourceId = resourceId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    public String getResourceAuho() {
        return resourceAuho;
    }

    public void setResourceAuho(String resourceAuho) {
        this.resourceAuho = resourceAuho;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", resourceId=").append(resourceId);
        sb.append(", roleId=").append(roleId);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", resourceAuho=").append(resourceAuho);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}